package com.baoyang.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baoyang.entity.BaoyangUser;
import com.baoyang.entity.vo.DriverUnloadCountRespVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BaoyangUserMapper extends BaseMapper<BaoyangUser> {

    IPage<DriverUnloadCountRespVO> selectDriverUnloadStats(
            Page<DriverUnloadCountRespVO> page,
            @Param(Constants.WRAPPER) QueryWrapper<BaoyangUser> wrapper
    );
}